package cn.chrilwe.pigpig.user.mapper;
/**
 * 
 * @author chrilwe
 * 2020-8-8
 */

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.chrilwe.pigpig.core.model.user.User;
import cn.chrilwe.pigpig.core.model.user.UserRole;
import cn.chrilwe.pigpig.core.model.user.ext.UserExt;

public interface UserMapper {
	
	public User selectUserByUsername(String username);
	
	public void insertUser(User user);
	
	public void updateUser(User user);
	
	public void insertUserRole(UserRole userRole);
	
	public List<User> selectAll(@Param("begin")int begin,@Param("size")int size);
}
